package com.colin.springbootsource.ioc.annotation;

import com.colin.springbootsource.ioc.xml.Animal;
import com.colin.springbootsource.ioc.xml.Cat;
import com.colin.springbootsource.ioc.xml.Dog;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: Colin
 * 2019/12/29 18:57
 * @desc todo
 * @email zhaod@oceansoft.com.cn,colinzhaodong@gmail.com
 */
@Configuration
public class BeanConfiguration {
    @Bean("cat")
    Animal getDog(){
        return new Cat();
    }
}
